execjs 2.8.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/execjs/support/node_runner.js +10 -8
- data/lib/execjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd129488d607b71ba6aec4c087036583727f4114d632107be2297b96a6a20f2
|
4
|
+
data.tar.gz: fea27c5987305700a3c5adbbe8f2e282dc5d49e6c579d2c91369886739342c26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99fe4da9a1203aa378e4f73879db38d7f9737dedc92141c820e099229eac5d00e311ab56379d5a92ef41fa1323cedf2614ee2e971e0e5602096f30732aed1808
|
7
|
+
data.tar.gz: df6fb1647179df49bef56c5570fbc7148bfa1e290945e398482e369572764b60c1293c2220c6e3101d6bd9880d47d4084f2b1325c5f39d321a186ef4ec2ac639
|
@@ -1,10 +1,13 @@
|
|
1
1
|
(function(program, execJS) { execJS(program) })(function(global, process, module, exports, require, console, setTimeout, setInterval, clearTimeout, clearInterval, setImmediate, clearImmediate) { #{source}
|
2
2
|
}, function(program) {
|
3
|
-
var
|
4
|
-
|
3
|
+
var __process__ = process;
|
4
|
+
|
5
|
+
var printFinal = function(string) {
|
6
|
+
process.stdout.write('' + string, function() {
|
7
|
+
__process__.exit(0);
|
8
|
+
});
|
5
9
|
};
|
6
10
|
try {
|
7
|
-
var __process__ = process;
|
8
11
|
delete this.process;
|
9
12
|
delete this.console;
|
10
13
|
delete this.setTimeout;
|
@@ -16,17 +19,16 @@
|
|
16
19
|
result = program();
|
17
20
|
this.process = __process__;
|
18
21
|
if (typeof result == 'undefined' && result !== null) {
|
19
|
-
|
22
|
+
printFinal('["ok"]');
|
20
23
|
} else {
|
21
24
|
try {
|
22
|
-
|
25
|
+
printFinal(JSON.stringify(['ok', result]));
|
23
26
|
} catch (err) {
|
24
|
-
|
27
|
+
printFinal(JSON.stringify(['err', '' + err, err.stack]));
|
25
28
|
}
|
26
29
|
}
|
27
30
|
} catch (err) {
|
28
31
|
this.process = __process__;
|
29
|
-
|
32
|
+
printFinal(JSON.stringify(['err', '' + err, err.stack]));
|
30
33
|
}
|
31
|
-
__process__.exit(0);
|
32
34
|
});
|
data/lib/execjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: execjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Stephenson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-05-
|
12
|
+
date: 2021-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|