Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium

New issue 2686 by [email protected]: Correctness of Function constructor compromised by String.indexOf monkeypatching
http://code.google.com/p/v8/issues/detail?id=2686

Steps to repeat:

  String.prototype.indexOf = function () { return -1; }

  Function('){function foo(', 'throw 2 }')

Expected result: SyntaxError because the formals are invalid.

Actual result: function created with source:

function anonymous(){function foo(
/**/) {
throw 2 }
}


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to