Skip to content

1.7.15: NativeRegexp calls ScriptRuntime.addInstructionCount when instruction counting is not enabled #1497

@rde2

Description

@rde2

org.mozilla.javascript.regexp.NativeRegExp at line 1891 does:

ScriptRuntime.addInstructionCount(cx, 5);

this will trigger a call to observeInstructionCount even if instructionThreshold is 0.

To reproduce, create a Context class which overrides observeInstructionCount and use regexps. observeInstructionCount will be called even though setInstructionObserverThreshold has not been called

Metadata

Metadata

Assignees

Labels

bugIssues considered a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions