diff options
Diffstat (limited to 'deps/v8/src/ast.cc')
-rw-r--r-- | deps/v8/src/ast.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/deps/v8/src/ast.cc b/deps/v8/src/ast.cc index 4edcf6d84..7cb557831 100644 --- a/deps/v8/src/ast.cc +++ b/deps/v8/src/ast.cc @@ -146,27 +146,6 @@ bool ObjectLiteral::Property::IsCompileTimeValue() { } -bool ObjectLiteral::IsValidJSON() { - int length = properties()->length(); - for (int i = 0; i < length; i++) { - Property* prop = properties()->at(i); - if (!prop->value()->IsValidJSON()) - return false; - } - return true; -} - - -bool ArrayLiteral::IsValidJSON() { - int length = values()->length(); - for (int i = 0; i < length; i++) { - if (!values()->at(i)->IsValidJSON()) - return false; - } - return true; -} - - void TargetCollector::AddTarget(BreakTarget* target) { // Add the label to the collector, but discard duplicates. int length = targets_->length(); |