Current behavior: - throwError("foo", V8Proxy::TypeError) is equivalent to throwError("foo") - throwTypeError() is equivalent to throwError("Type Error") We want to unify them as follows: (1) throwTypeError() should take one string argument which explains what the type error is. Just "Type Error" is not descriptive. (2) Replace all throwError("foo") with throwTypeError("foo"). (3) Replace all throwError("foo", V8Proxy::TypeError) with throwTypeError("foo"). Consequently, only throwTypeError("...") will remain in the binding code. In this bug, we fix (1).
Created attachment 138443 [details] Patch
We need to fix JSC side too to align the behavior, and thus the fix would be controversial. Let me mark as WONTFIX for now.