Quote
How come `undefined` is being coerced to pseudo-window object (when invoking function with call/apply) and `null` isn't?
This is now fixed, it returns the $window$ instead of null ;)
Quote
var o = { x: 1 };
'x' in o; // false
I rewrite the "in" operator when it's not being used inside a for(i in ) loop. JSReg now has a special globals.inOperator which replaces your property with $prop$
Quote
eval('eval(1)');
Was expecting `1`, got `TypeError`.
This was a bug in the symbols, it was making the eval function undefined when used twice.
Quote
eval('with(window){ alert(typeof eval) }');
Was expecting "function", got "undefined"
Fixed related to the previous one
Quote
This - ['x'],['x'] - for some reason, is being parsed inconsistently -
Yep Arrays are a headache for me as I need to make sure I only match arrays and not obj['string']. Adding the , to the lookahead solved this problem.
Quote
eval('ale'+[]+'rt'+'(1)') //ReferenceError: $ale$undefined$rt$ is not defined
Fixed! The arrays weren't being matched inside the eval when using them as strings :)
Thanks all again!
------------------------------------------------------------------------------------------------------------
"People who say it cannot be done should not interrupt those who are doing it.";
labs : [
www.businessinfo.co.uk]
blog : [
www.thespanner.co.uk]
Hackvertor : [
hackvertor.co.uk]