Skip to content

Commit b6be545

Browse files
committed
[js] Disable attribute hints till they are fixed to work with multi-inheritance
1 parent 2666a65 commit b6be545

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/vm/js/Compiler.nqp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,8 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
19731973
# Get lookup hint if possible.
19741974
my int $hint := -1;
19751975
if $var[1].has_compile_time_value {
1976-
$hint := nqp::hintfor($var[1].compile_time_value, $var.name);
1976+
#disabled till we handle hints with multi-inheritance correctly
1977+
#$hint := nqp::hintfor($var[1].compile_time_value, $var.name);
19771978
}
19781979

19791980
my $suffix := self.suffix_from_type($type);

src/vm/js/Operations.nqp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,11 @@ class QAST::OperationsJS {
286286

287287
my sub static_hint($node) {
288288
my int $hint := -1;
289-
if $node[1].has_compile_time_value && nqp::istype($node[2], QAST::SVal) {
290-
$hint := nqp::hintfor($node[1].compile_time_value, $node[2].value);
291-
}
289+
290+
# disabled till we handle hints with multi-inheritance correctly
291+
#if $node[1].has_compile_time_value && nqp::istype($node[2], QAST::SVal) {
292+
# $hint := nqp::hintfor($node[1].compile_time_value, $node[2].value);
293+
#}
292294

293295
$hint != -1 ?? $hint !! NQPMu;
294296
}

0 commit comments

Comments
 (0)