asm.js Compiler Accepts Function Tables with Inconsistent Signatures

Fixed Issue #4530235

Details

Created
Sep 9, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

function Repro(stdlib, foreign, buffer) {
'use asm’;

function p1(a) {
    a = a | 0;
    return;
}

function p2(a, b) {
    a = a | 0;
    b = b | 0;
    return;
}

var inconsistentParameters = [p1, p2];

return { p1: p1 }

}

Expected Results:

Firefox reports this: TypeError: asm.js type error: all functions in table must have same signature
Edge should do something similar.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Kamen M.”

      Changed Assigned To to “ChakraTriage”

      Changed Assigned To from “ChakraTriage” to “Michael H.”

      Changed Assigned To from “Michael H.” to “IE S.”

      Changed Status to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in