Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
polkit
polkit
Commits
85c38f36
Commit
85c38f36
authored
Mar 28, 2018
by
Ray Strode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsauthority: re-enable JIT
seems to work with mozjs52
parent
7a3d3b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/polkitbackend/polkitbackendjsauthority.cpp
src/polkitbackend/polkitbackendjsauthority.cpp
+3
-6
No files found.
src/polkitbackend/polkitbackendjsauthority.cpp
View file @
85c38f36
...
...
@@ -458,13 +458,10 @@ polkit_backend_js_authority_constructed (GObject *object)
if
(
!
JS
::
InitSelfHostedCode
(
authority
->
priv
->
cx
))
goto
fail
;
/* TODO: JIT'ing doesn't work will with killing runaway scripts... I think
* this is just a SpiderMonkey bug. So disable the JIT for now.
*/
JS
::
ContextOptionsRef
(
authority
->
priv
->
cx
)
.
setIon
(
FALS
E
)
.
setBaseline
(
FALS
E
)
.
setAsmJS
(
FALS
E
);
.
setIon
(
TRU
E
)
.
setBaseline
(
TRU
E
)
.
setAsmJS
(
TRU
E
);
JS
::
SetWarningReporter
(
authority
->
priv
->
cx
,
report_error
);
JS_SetContextPrivate
(
authority
->
priv
->
cx
,
authority
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment