Why is this code ok:
var test = {
fn1: function(_origin, _componentType) {
if(arguments.length > 1) throw "xx";
"use strict";
var interface = new Object(this);
}
}
Until it
var test = {
fn1: function(_origin, _componentType) {
"use strict";
if(arguments.length > 1) throw "xx";
var interface = new Object(this);
}
}
I know that the interface is reserved in strict mode, but shouldn't both examples throw an error?
source
share