Bug 1071177 - Support symbol keys and throw exception on unique symbols with CPOWs. r=billm

This commit is contained in:
Tom Schuster
2014-10-16 18:39:38 +02:00
parent 40cc1945b5
commit b22d3e39c2
9 changed files with 36 additions and 26 deletions

View File

@@ -440,7 +440,8 @@ JavaScriptShared::toSymbolVariant(JSContext *cx, JS::Symbol *symArg, SymbolVaria
*symVarp = RegisteredSymbol(autoStr);
return true;
}
MOZ_CRASH("unique symbols not yet implemented");
JS_ReportError(cx, "unique symbol can't be used with CPOW");
return false;
}