phptest 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -44,7 +44,9 @@ module.exports = function (phpCorePath, initRuntime) {
|
|
|
44
44
|
* @returns {Runtime}
|
|
45
45
|
*/
|
|
46
46
|
createRuntime = function (mode) {
|
|
47
|
-
|
|
47
|
+
var runtime = runtimeFactory.create(mode);
|
|
48
|
+
|
|
49
|
+
return initRuntime ? initRuntime(runtime) : runtime;
|
|
48
50
|
},
|
|
49
51
|
|
|
50
52
|
createAsyncRuntime = function () {
|
|
@@ -136,12 +138,6 @@ module.exports = function (phpCorePath, initRuntime) {
|
|
|
136
138
|
)()
|
|
137
139
|
.match(/<anonymous>:(\d+):\d+/)[1] - 1;
|
|
138
140
|
|
|
139
|
-
if (!initRuntime) {
|
|
140
|
-
initRuntime = function (runtime) {
|
|
141
|
-
return runtime;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
141
|
// Force all opcodes to be async for all async mode tests, to help ensure async handling is in place.
|
|
146
142
|
asyncRuntime.install({
|
|
147
143
|
serviceGroups: [
|