mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix setting of esversion in nrjavascript worker
This commit is contained in:
parent
aaf134b1c5
commit
19726cf428
File diff suppressed because one or more lines are too long
@ -76,7 +76,7 @@ oop.inherits(NRJavaScriptWorker, Mirror);
|
|||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
this.setOptions = function(options) {
|
this.setOptions = function(options) {
|
||||||
this.options = options || {
|
this.options = {
|
||||||
// undef: true,
|
// undef: true,
|
||||||
// unused: true,
|
// unused: true,
|
||||||
esversion: 9,
|
esversion: 9,
|
||||||
@ -95,8 +95,14 @@ oop.inherits(NRJavaScriptWorker, Mirror);
|
|||||||
globalstrict: true,
|
globalstrict: true,
|
||||||
sub: true,
|
sub: true,
|
||||||
asi: true
|
asi: true
|
||||||
|
|
||||||
};
|
};
|
||||||
|
if (options) {
|
||||||
|
for (var opt in options) {
|
||||||
|
if (options.hasOwnProperty(opt)) {
|
||||||
|
this.options[opt] = options.opt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
this.doc.getValue() && this.deferredUpdate.schedule(100);
|
this.doc.getValue() && this.deferredUpdate.schedule(100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user