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

RESOLVED FIXED in mozilla2.0b5

Status

()

defect
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: Waldo, Assigned: Waldo)

Tracking

Trunk
mozilla2.0b5
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(blocking2.0 beta7+)

Details

(Whiteboard: fixed-in-tracemonkey, )

Attachments

(1 attachment)

Assignee

Description

9 years ago
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.
Assignee

Updated

9 years ago
QA Contact: general → jwalden+bmo

Updated

9 years ago
blocking2.0: --- → beta5+
Assignee

Updated

9 years ago
Assignee: general → jwalden+bmo
QA Contact: jwalden+bmo → general
Assignee

Comment 1

9 years ago
Attachment #468076 - Flags: review?
Assignee

Updated

9 years ago
Attachment #468076 - Flags: review? → review?(sayrer)

Updated

9 years ago
Attachment #468076 - Flags: review?(sayrer) → review+
Assignee

Comment 2

9 years ago
http://hg.mozilla.org/tracemonkey/rev/58129dadc84f
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: fixed-in-tracemonkey
Target Milestone: --- → mozilla2.0b5

Updated

9 years ago
blocking2.0: beta5+ → beta6+

Comment 3

9 years ago
http://hg.mozilla.org/mozilla-central/rev/58129dadc84f
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.