Backed out changeset fd6c99f92485 (bug 1165486)

This commit is contained in:
Carsten "Tomcat" Book 2015-06-16 10:44:58 +02:00
parent c5e49670f0
commit 2996bb2119

View File

@ -293,7 +293,7 @@ class GlobalSharedContext : public SharedContext
inWith_(computeInWith())
{}
ObjectBox* toObjectBox() override { return nullptr; }
ObjectBox* toObjectBox() { return nullptr; }
HandleObject topStaticScope() const { return topStaticScope_; }
bool allowSyntax(AllowedSyntax allowSyntax) const override {
switch (allowSyntax) {
@ -338,7 +338,7 @@ class FunctionBox : public ObjectBox, public SharedContext
ParseContext<ParseHandler>* pc, Directives directives,
bool extraWarnings, GeneratorKind generatorKind);
ObjectBox* toObjectBox() override { return this; }
ObjectBox* toObjectBox() { return this; }
JSFunction* function() const { return &object->as<JSFunction>(); }
GeneratorKind generatorKind() const { return GeneratorKindFromBits(generatorKindBits_); }