| Index: src/asmjs/asm-typer.cc
|
| diff --git a/src/asmjs/asm-typer.cc b/src/asmjs/asm-typer.cc
|
| index 2848e4af725419e39c8109a5c8dad1cbfc030917..e79e1c739a2c1c45fa5fdfa659e894cc9f7ad153 100644
|
| --- a/src/asmjs/asm-typer.cc
|
| +++ b/src/asmjs/asm-typer.cc
|
| @@ -2814,14 +2814,12 @@ AsmType* AsmTyper::VariableTypeAnnotations(
|
| "to fround.");
|
| }
|
|
|
| - // Float constants must contain dots in local, but not in globals.
|
| - if (mutability_type == VariableInfo::kLocal) {
|
| - if (!src_expr->raw_value()->ContainsDot()) {
|
| - FAIL(initializer,
|
| - "Invalid float type annotation - expected literal argument to be a "
|
| - "floating point literal.");
|
| - }
|
| - }
|
| + // ERRATA: 5.4
|
| + // According to the spec: float constants must contain dots in local,
|
| + // but not in globals.
|
| + // However, the errata doc (and actual programs), use integer values
|
| + // with fround(..).
|
| + // Skipping the check that would go here to enforce this.
|
|
|
| return AsmType::Float();
|
| }
|
|
|