typeof / /
- ECMAScript 4 discussion - Callable RegExp vs. typeof
- Bug 582717 - Make regular expressions not callable
engine\code | typeof/ / |
/ /(0) |
Function.call.call(/ /,/ /,0) |
---|---|---|---|
SpiderMonkey (Fx3.6) | "object" |
null |
TypeError*1 |
Carakan (Op10.6) | "object" |
null |
TypeError*2 |
v8 (GC5) | "function" |
null |
null |
SquirrelFish (Sf5) | "function" |
null |
null |
Rhino 1.7 | "function" |
null |
null |
"object" |
TypeError | TypeError |
Firefox/Opera では言わば隠し機能扱い。
(直接呼べるけど [[Call]] は持たないかのように振る舞う。)
Brendan としては無かったことにしてしまいたいが対応ブラウザが多くて消すに消せない状態らしい。