Kevin Sawicki
e99b1709d9
Redeclare process/global as strings
2017-01-30 09:58:44 -08:00
James Ide
0430380de1
Update the Node submodule to use the new module wrapper
...
See the fixed issue for the context. This pulls in a vendored copy of Node that includes the described patch.
Fixes #8358
Test Plan: Built Electron and verified it loaded the sample app correctly and that the module wrapper is the new one by viewing Node's source code in the Blink Inspector.
Added specs and tested with `npm test -- --grep "global variables"`
2017-01-30 09:37:14 -08:00
Kevin Sawicki
170c51ae85
Add spec for crashing node process
2017-01-24 13:49:45 -08:00
Cheng Zhao
ce847fc3ca
Merge pull request #7578 from electron/windows-logging
...
Show console output from Windows when ELECTRON_RUN_AS_NODE is set
2016-10-17 20:22:39 +08:00
Samuel Attard
eac5ba4c56
Fix spec linting issues
2016-10-13 12:47:43 +11:00
Kevin Sawicki
e899050500
Add basic test of spawned ELECTRON_RUN_AS_NODE process
2016-10-12 13:48:49 -07:00
Kevin Sawicki
8897a7a926
Add specs for ELECTRON_NO_ASAR env var
2016-10-12 11:11:27 -07:00
Thiago de Arruda
47fd41715f
Add some tests for "sandbox" option
2016-09-27 06:01:47 -03:00
Kevin Sawicki
f792c720f4
Allow spec to be run multiple times in same runner
2016-09-14 11:16:44 -07:00
Kevin Sawicki
bc13536208
Add failing spec for missing remote properties
2016-09-14 10:53:25 -07:00
Kevin Sawicki
aaf2bb2751
Add spec for deleting Buffer global in preload
2016-09-08 10:34:09 -07:00
Kevin Sawicki
ec44a5d198
Add tests for setting remote function properties
2016-08-22 17:07:18 -07:00
Kevin Sawicki
d226b7bc6c
Use Proxy for accessing properties of remote function
2016-08-22 17:07:18 -07:00
Kevin Sawicki
600076b46d
Remove lint from fixtures
2016-08-22 17:07:17 -07:00
Kevin Sawicki
d333cc5e38
Support remote function properties
2016-08-22 17:07:17 -07:00
Kevin Sawicki
9e4665fbc4
Add failing spec for remote static members
2016-08-22 17:07:17 -07:00
Kevin Sawicki
5cc61089d9
Add failing spec for remote function with properties
2016-08-22 17:07:17 -07:00
Cheng Zhao
eb51e080e5
spec: TypeArray should work in remote
2016-07-25 16:30:40 +09:00
Kevin Sawicki
ab1786c17d
Add spec for circular array/object references
2016-07-11 09:52:50 -07:00
Kevin Sawicki
2e02994277
Add parens about constructor
2016-07-06 15:45:35 -07:00
Kevin Sawicki
56739e10e3
Add anonymous class to exports and assert it
2016-07-06 13:11:25 -07:00
Kevin Sawicki
d67dfd09fd
Pass through empty constructor names
2016-07-06 09:18:20 -07:00
Kevin Sawicki
a1209b69b3
Add spec for constructor-less param
2016-07-06 09:11:04 -07:00
Kevin Sawicki
8a9f2261d0
Add default error handler to remote promises ( #6151 )
...
* Add failing spec for unhandled main process exception
* Remove unused return
* Use let/const instead of var
* Add spec for unhandled rejection in renderer process
* Prevent unhandled rejection defaul
* Use once instead of on
* Add default fulfilled/rejection handler to promise
2016-06-21 00:54:15 +00:00
Cheng Zhao
4d8994df92
spec: child_process.fork shouble be able to pipe stdio
2016-05-31 11:05:58 +09:00
Kevin Sawicki
fc4b224dec
Add asserts for properties
2016-05-27 10:52:56 -07:00
Kevin Sawicki
7cf6be07a6
Add failing spec for remote property with no prototype
2016-05-27 10:45:39 -07:00
Kevin Sawicki
f3af1dbd54
Add failing spec for rejected remote promise
2016-05-23 15:06:46 -07:00
Cheng Zhao
0140015500
spec: WebView is disabled when nodeIntegration is disabled
2016-05-17 17:04:13 +09:00
Kevin Sawicki
e4bd592e0e
Add failing spec
2016-04-21 11:49:42 -07:00
Zeke Sikelianos
9db733a4ff
mostly more globals
2016-03-30 17:00:32 -07:00
Zeke Sikelianos
c4b6cf4a8e
do more manual cleanup and specify globals
2016-03-30 17:00:32 -07:00
Zeke Sikelianos
f35f362272
autoformat more files
2016-03-30 17:00:31 -07:00
Kevin Sawicki
a9e22801e9
Add failing spec for reassigning remote function
2016-03-04 15:44:50 -08:00
Cheng Zhao
f610e332b3
spec: Tests for remote ES6 class
2016-02-22 12:35:51 +08:00
cesine
2aff0c47d0
⬆️ 👕 updated to eslint 2.1.0
...
Verified migration doc (nothing to be done)
http://eslint.org/docs/user-guide/migrating-to-2.0.0
And made sure the eslint tasks passed
2016-02-15 22:30:29 -05:00
Robo
72374b6e31
remote: support arguments of type Date
2015-12-30 01:41:31 +05:30
Cheng Zhao
1d1f911b09
Use require('electron') in Electron's code
2015-11-12 20:29:30 +08:00
Cheng Zhao
6515a445a0
Use ipcRenderer in Electron's code
2015-11-10 15:29:43 +08:00
Cheng Zhao
93639a080c
spec: setImmediate should work in forked scripts
2015-09-17 15:12:15 +08:00
Cheng Zhao
baacc939f6
spec: node symbols should always be available in preload script
2015-09-14 16:05:58 +08:00
Cheng Zhao
d4cbf7cadb
spec: node-integration should work in web-preferences
2015-09-10 15:57:16 +08:00
Ryohei Ikegami
428ad20807
Change spec to test Promise in both side
2015-07-31 14:52:48 +09:00
Ryohei Ikegami
c7d1f4f6b2
Add spec for remote Promise
2015-07-31 14:52:48 +09:00
Cheng Zhao
efd8a8a624
spec: original-fs is available in forked scripts
2015-05-20 13:37:46 +08:00
deepak1556
399f47ef0f
implemetation of AtomCommandline to preserve args
2015-03-28 22:41:00 +05:30
Cheng Zhao
f214e88784
spec: Script forked with child_process supports asar archives
2015-02-04 10:52:09 -08:00
Cheng Zhao
c14c6a3521
spec: The preload script should be able to receive ipc messages
2015-01-26 18:06:27 -08:00
Cheng Zhao
f81df9a5d3
spec: Test localeCompare in child process
2015-01-16 16:11:02 -08:00
Cheng Zhao
58795eaa7e
spec: "preload" option of BrowserWindow
2014-11-12 15:38:50 +08:00