Permalink
Browse files

Reflect.parse: support debugger statement.

  • Loading branch information...
1 parent 1494464 commit 6651597a250465b8b9ee887813a6b61bfba4935c Ariya Hidayat committed May 11, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 modules/reflect/reflect.cpp
@@ -226,6 +226,12 @@ Handle<Value> convertNode(JSC::SyntaxTree::Node* n, int indent)
return object;
}
+ if (n->type() == JSC::SyntaxTree::Node::DebuggerType) {
+ Handle<Object> object = Object::New();
+ object->Set(String::New("type"), String::New("DebuggerStatement"));
+ return object;
+ }
+
if (n->type() == JSC::SyntaxTree::Node::DotAccessType) {
Handle<Object> property = Object::New();
property->Set(String::New("type"), String::New("Identifier"));

0 comments on commit 6651597

Please sign in to comment.