mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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() {
|
||||
this.setOptions = function(options) {
|
||||
this.options = options || {
|
||||
this.options = {
|
||||
// undef: true,
|
||||
// unused: true,
|
||||
esversion: 9,
|
||||
@ -95,8 +95,14 @@ oop.inherits(NRJavaScriptWorker, Mirror);
|
||||
globalstrict: true,
|
||||
sub: 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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user