dart-sass/test
Natalie Weizenbaum a95c5b8ccb Do variable index adjustments when accessing variables, not nodes
Doing this for variable *nodes* was breaking in extremely specific
circumstances:

* A null node is passed into setVariable() and, if source maps are
  enabled, recorded in _variableNodes.

* Later on, getVariableNode() is called for that variable. Because
  that variable's node is null, it calls
  _getVariableNodeFromGlobalModule() even though the variable is
  actually defined.

* _getVariableNodeFromGlobalModule() sets _lastVariableIndex to 0 on
  the assumption that the variable is undefined, which turns out to be
  incorrect in this specific case.

The next commit will fix the issue where a null node can be passed
into setVariable() when source maps are enabled, but it makes more
sense to assign the variable index to 0 in the variable access anyway,
since it happens first and isn't skipped when source maps are
disabled.
2020-02-07 00:51:46 -08:00
..
cli Do variable index adjustments when accessing variables, not nodes 2020-02-07 00:51:46 -08:00
dart_api Fix new strict inference hints from Dart 2.6 2019-11-06 14:47:24 -08:00
node_api Give JavaScript value objects useful constructor.name values (#936) 2020-01-17 14:46:10 -08:00
compressed_test.dart Add support for attribute selector modifiers (#658) 2019-04-30 11:31:18 -07:00
dart_api_test.dart Fix new strict inference hints from Dart 2.6 2019-11-06 14:47:24 -08:00
doc_comments_test.dart Add documentation comment collection to AST (#548) 2018-12-20 16:08:26 -08:00
double_check_test.dart Add a test case to verify that the pubspec version is bumped 2020-01-15 17:35:32 -08:00
ensure_npm_package.dart Use cli_pkg to build and release executables (#924) 2020-01-24 13:05:04 -08:00
hybrid.dart Fix new strict inference hints from Dart 2.6 2019-11-06 14:47:24 -08:00
node_api_test.dart Fix import-only files for Node importers (#919) 2020-01-03 15:41:12 -08:00
output_test.dart Remove exponent notation for integers on Node.js 2019-05-21 13:36:36 -07:00
repo_test.dart Fix invalid YAML in .travis.yml (#887) 2019-11-19 14:27:20 -08:00
source_map_test.dart Fix new strict inference hints from Dart 2.6 2019-11-06 14:47:24 -08:00
utils.dart Enable strict raw types 2019-05-31 16:01:49 +01:00