Revision: 21518
Author: [email protected]
Date: Tue May 27 11:53:12 2014 UTC
Log: Do not (eagerly) trigger exception in mjsunit.js.
[email protected]
Review URL: https://codereview.chromium.org/301673002
http://code.google.com/p/v8/source/detail?r=21518
Modified:
/branches/bleeding_edge/test/mjsunit/mjsunit.js
=======================================
--- /branches/bleeding_edge/test/mjsunit/mjsunit.js Fri Nov 22 13:50:39
2013 UTC
+++ /branches/bleeding_edge/test/mjsunit/mjsunit.js Tue May 27 11:53:12
2014 UTC
@@ -371,13 +371,10 @@
throw new MjsUnitAssertionError(message);
};
-
- var OptimizationStatus;
- try {
- OptimizationStatus =
- new Function("fun", "sync", "return %GetOptimizationStatus(fun,
sync);");
- } catch (e) {
- OptimizationStatus = function() {
+ var OptimizationStatus = function(fun, sync_opt) {
+ try {
+ return eval("%GetOptimizationStatus(fun, sync_opt);");
+ } catch (e) {
throw new Error("natives syntax not allowed");
}
}
--
--
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/d/optout.