Closed Bug 588251 Opened 15 years ago Closed 15 years ago

fun.caller should throw if that value corresponds to a strict mode function (?)

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b5
Tracking Status
blocking2.0 --- beta7+

People

(Reporter: Waldo, Assigned: Waldo)

References

()

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

By my reading of 15.3.5.4 it looks like per ES5 this should pass: function nonstrict() { return nonstrict.caller; } function strict() { "use strict"; return nonstrict(); } try { strict(); throw 17; } catch (e) { print(e instanceof TypeError ? "PASS" : "FAIL"); } Or am I missing something? Easy two-ish-liner in fun_getProperty, just want to be sure I'm not misreading something.
QA Contact: general → jwalden+bmo
blocking2.0: --- → beta5+
Assignee: general → jwalden+bmo
QA Contact: jwalden+bmo → general
Attached patch Patch and testSplinter Review
Attachment #468076 - Flags: review?
Attachment #468076 - Flags: review? → review?(sayrer)
Attachment #468076 - Flags: review?(sayrer) → review+
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: fixed-in-tracemonkey
Target Milestone: --- → mozilla2.0b5
blocking2.0: beta5+ → beta6+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: