Skip to content

Commit

Permalink
IE11 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Garrett committed Jan 8, 2020
1 parent 21c8879 commit ca9c558
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/@ember/-internals/glimmer/lib/helpers/mut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function(args: VMArguments, vm: VM) {
//
// This message is alright for the first case, but could be quite
// confusing for the second case.
assert('You can only pass a path to mut', UPDATE_REFERENCED_VALUE in rawRef);
assert('You can only pass a path to mut', rawRef[UPDATE_REFERENCED_VALUE] !== undefined);

return new MutReference(rawRef, vm.env);
}
3 changes: 2 additions & 1 deletion packages/@ember/-internals/glimmer/lib/utils/iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class ObjectIterator extends BoundedIterator {
let length = 0;
let isMapLike = false;

obj.forEach((value: unknown, key: unknown) => {
// Not using an arrow function here so we can get an accurate `arguments`
obj.forEach(function (value: unknown, key: unknown) {
isMapLike = isMapLike || arguments.length >= 2;

if (isMapLike) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ moduleFor(
});

let expectedMessage = backtrackingMessageFor('name', '\\(unknown object\\)', {
renderTree: ['\\(result of a `helloWorld` helper\\)'],
renderTree: ['\\(result of a `.*` helper\\)'],
});

expectDeprecation(() => {
Expand Down
13 changes: 1 addition & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4447,18 +4447,7 @@ growly@^1.3.0:
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=

handlebars@^4.0.11, handlebars@^4.0.4, handlebars@^4.0.6:
version "4.5.3"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482"
integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==
dependencies:
neo-async "^2.6.0"
optimist "^0.6.1"
source-map "^0.6.1"
optionalDependencies:
uglify-js "^3.1.4"

handlebars@^4.5.1:
handlebars@^4.0.11, handlebars@^4.0.4, handlebars@^4.5.1:
version "4.5.3"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482"
integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==
Expand Down

0 comments on commit ca9c558

Please sign in to comment.