isomorfeus-puppetmaster 0.6.11 → 0.6.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d7381eb86e0aebdfcc20a8aab6da28f9015f61e544f967ae8ed7dff93d0066e
|
4
|
+
data.tar.gz: 4ef4dd695aea946f494169161bfe8e250dcfa21c27eafe19d0031136e39264d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfe2342ae411f16d9c83ae2479a159bcca95de422ec2aca82aad9eb6cffa2e38312aee0835ea3c112b1dd225dc9ac1aff3559400bb8648116fb93186eb63ca6c
|
7
|
+
data.tar.gz: 06e936622b8438b32e51b7c36cda934e60470919fe075e176a2b160dd5533101471cc59bda314bf6c54ed4bd715d56fa39d799a35387c1536835aa88ea59c433
|
@@ -78,7 +78,7 @@ class Puppeteer::ExecutionContext
|
|
78
78
|
end
|
79
79
|
result, exception = evaluate <<~JAVASCRIPT
|
80
80
|
function () {
|
81
|
-
var
|
81
|
+
var res;
|
82
82
|
var exception = false;
|
83
83
|
if (Opal.await_ruby_exception) {
|
84
84
|
var e = Opal.await_ruby_exception;
|
@@ -87,11 +87,13 @@ class Puppeteer::ExecutionContext
|
|
87
87
|
let r = Opal.gvars.promise_result;
|
88
88
|
exception = { message: r.$message(), name: r.$class().$name(), stack: r.$backtrace() }
|
89
89
|
} else if (Opal.gvars.promise_result['$respond_to?']('to_n')) {
|
90
|
-
|
91
|
-
} else {
|
90
|
+
res = Opal.gvars.promise_result.$to_n()
|
91
|
+
} else { res = Opal.gvars.promise_result };
|
92
92
|
delete Opal.gvars.promise_result;
|
93
93
|
delete Opal.gvars.promise_resolved;
|
94
|
-
|
94
|
+
if (res && res.$to_n) { res = res.$to_n(); }
|
95
|
+
res = ((res === Opal.nil) ? null : res);
|
96
|
+
return [res, exception];
|
95
97
|
}
|
96
98
|
JAVASCRIPT
|
97
99
|
if exception
|