Skip to content

dart2js: inlining difference in dart2 #33145

Closed
@sigmundch

Description

@sigmundch

This example shows _checkLength gets inlined in Dart1 but not in Dart2. The _checkLength function simply returns the parameter and has no checks, even in compliance mode.

import 'dart:typed_data';

const C = 304;

main() {
  print(new Uint8List(0));
  print(new Uint8List(C));
}

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onweb-dart2js

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions