Closed Bug 1095308 Opened 11 years ago Closed 11 years ago

Remove some compileAndGo checks from frontend::CompileScript

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

We have: 235 MOZ_ASSERT_IF(evalCaller, options.compileAndGo); and then later in the function: 278 bool savedCallerFun = options.compileAndGo && 279 evalCaller && evalCaller->functionOrCallerFunction(); and 315 if (options.compileAndGo && evalCaller && evalCaller->functionOrCallerFunction()) { so I claim those options.compileAndGo checks after the assert are redundant. At least if we trust the assert.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8518700 - Flags: review?(luke) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 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: