- // This unholy class is used to allow us to avoid multiple exception checks
- // in certain SquirrelFish bytecodes -- effectively it just silently consumes
- // any operations performed on the result of a failed toObject call.
- class JSNotAnObject : public JSNonFinalObject {
- private:
- JSNotAnObject(ExecState* exec)
- : JSNonFinalObject(exec->vm(), exec->vm().notAnObjectStructure.get())
- {
- }
-
- public:
- typedef JSNonFinalObject Base;
+// This unholy class is used to allow us to avoid multiple exception checks
+// in certain SquirrelFish bytecodes -- effectively it just silently consumes
+// any operations performed on the result of a failed toObject call.
+class JSNotAnObject final : public JSNonFinalObject {
+private:
+ explicit JSNotAnObject(VM& vm)
+ : JSNonFinalObject(vm, vm.notAnObjectStructure.get())
+ {
+ }