Index: test/mjsunit/proto-accessor.js |
diff --git a/test/mjsunit/proto-accessor.js b/test/mjsunit/proto-accessor.js |
index 5eb48bbd239af1f8a420fd626a108fb64ebba944..d38d362579587ec7fc81ccea7c77d28b9493b854 100644 |
--- a/test/mjsunit/proto-accessor.js |
+++ b/test/mjsunit/proto-accessor.js |
@@ -27,6 +27,10 @@ |
// Flags: --harmony-symbols |
+// Fake Symbol if undefined, allowing test to run in non-Harmony mode as well. |
+this.Symbol = typeof Symbol != 'undefined' ? Symbol : String; |
+ |
+ |
var desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); |
var getProto = desc.get; |
var setProto = desc.set; |