RewriterMessageType.CANNOT_MASK_IDENTIFIER, MessageLevel.FATAL_ERROR,
MessagePart.Factory.valueOf("Array"));
}
public final void testUnmaskableFormals() throws Exception {
Block b = js(fromString("function NaN(Infinity, arguments) {}"));
Scope top = fromProgram(b);
FunctionDeclaration fn = ((FunctionDeclaration) b.children().get(0));
Scope.fromFunctionConstructor(top, fn.getInitializer());
assertMessage(
RewriterMessageType.CANNOT_MASK_IDENTIFIER, MessageLevel.FATAL_ERROR,
MessagePart.Factory.valueOf("NaN"));
assertMessage(