Regression: Fix various failures in test262
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 11 Jun 2013 13:47:17 +0000 (15:47 +0200)
committerLars Knoll <lars.knoll@digia.com>
Tue, 11 Jun 2013 14:00:57 +0000 (16:00 +0200)
The stack property added to Error objects must not be enumerable.

Change-Id: Ie163cff2d9c41997e95afa6dd32275be6b4b310d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/qv4errorobject_p.h

index 613c054..eecda5d 100644 (file)
@@ -69,7 +69,7 @@ struct QV4_JS_CLASS(ErrorObject): Object {
     ExecutionEngine::StackTrace stackTrace;
     Value stack;
 
-    static Value method_get_stack(SimpleCallContext *ctx);
+    static Value method_get_stack(SimpleCallContext *ctx) QV4_ANNOTATE(attributes QV4::Attr_NotEnumerable);
 };
 
 struct EvalErrorObject: ErrorObject {