Permalink
Switch branches/tags
Commits on Jul 18, 2018
  1. Fallback on EvalOrigin as a filename in gjstest stack traces.

    eschoeffler-google authored and jacobsa committed Jul 18, 2018
    In cases where a file is evaled, filenames are not undefined, but EvalOrigin provides the file from which the eval code came.
Commits on Jun 14, 2018
  1. Merge pull request #17 from trevorade/master

    jacobsa committed Jun 14, 2018
    Recommend GJSTest users use ES6 classes rather than a function with @constructor.
Commits on Jun 12, 2018
  1. Update register.js

    trevorade committed Jun 12, 2018
  2. Update mocks.golden.xml

    trevorade committed Jun 12, 2018
  3. Update mocks.golden.txt

    trevorade committed Jun 12, 2018
  4. Update exception.golden.xml

    trevorade committed Jun 12, 2018
  5. Update exception.golden.txt

    trevorade committed Jun 12, 2018
Commits on Mar 20, 2018
  1. Adjust code to the API changes in V8 6.5.

    ulan authored and jacobsa committed Mar 20, 2018
    V8 6.5 removed deprecated functions (see https://bit.ly/v8-api-changes).
    
    Changes that apply to gjstest:
    - TryCatch constructor requires an isolate.
    - Function::NewInstance returns MaybeLocal<>.
    - ScriptCompiler::CompileUnbound is renamed to CompileUnboundScript
      and returns a MaybeLocal<>.
    - Value::ToUint32 requires a context and returns a Maybe<>.
Commits on Mar 19, 2018
  1. Fix type checking in matcher_types.js.

    shicks authored and jacobsa committed Mar 19, 2018
    Adds explicit casts to clarify two cases where the type checker isn't quite sophisticated enough to infer the correct types.
    
    Background: Closure Compiler is trying to land a change to improve inference of qualified names.  An upshot of this is that it will soon understand that "this.getDescription" is supposed to be a `function(): string` (rather than just unknown as it does currently), which causes a type error when it tries to return a `string|function(): string` (note that the compiler does not currently propagate the flow-sensitive context that `description` is definitely a string from outside the closure to inside).
Commits on Aug 9, 2017
  1. v8_utils: remove an old hack.

    jacobsa committed Aug 9, 2017
    These days, at least when building with homebrew, the appropriate
    headers appear to be available.
Commits on Apr 19, 2017
  1. mock_instance.js: be compatible with ES6.

    jacobsa committed Apr 19, 2017
    Thanks to Mairin Chesney.
Commits on Apr 18, 2017
  1. - Added test that would fail using obj.constructor.name == 'Object' as a

    mchesneyatwork committed Apr 18, 2017
      check for base object, but passes now.
    - Added checks for expectations of enumerability of prototype properties
      with ES5 and ES6 syntax.
Commits on Apr 17, 2017
  1. Instead of using constructor name to check if the base object has been

    mchesneyatwork committed Apr 17, 2017
    reached, check if the parent object is null. Child objects may also have
    the constructor name 'Object'.
Commits on Apr 11, 2017
  1. - Move method that creates array of properties outside of createMockO…

    mchesneyatwork committed Apr 11, 2017
    …fPrototype_
    
    - Add a few clarifying comments
Commits on Apr 10, 2017
Commits on Mar 21, 2017
  1. Qualify std::vector.

    jacobsa committed Mar 21, 2017
Commits on Nov 27, 2016
  1. Fixed test breakage for v8 5.4.449 (#13)

    inazz authored and jacobsa committed Nov 27, 2016
    See src/messages.h:334 on following patch for corresponding v8 change.
    v8/v8@a3c1343#diff-8fb2cf24b71a21c5b45a289bcb71ed2e
Commits on Jul 26, 2016
Commits on Mar 22, 2016
  1. Remove console.log statement.

    tjgq committed Mar 22, 2016
Commits on Jan 22, 2016
  1. Merge pull request #9 from LuminateWireless/stringpiece-fix

    jacobsa committed Jan 22, 2016
    Include <cstddef> as required by ptrdiff_t.
Commits on Oct 14, 2015
Commits on Aug 31, 2015
  1. Fixed a bunch of build errors.

    jacobsa committed Aug 31, 2015
    For the longest time I couldn't reproduce these because I couldn't begin
    to build, due to the ancient and messed up version of v8 in Homebrew
    (see Homebrew/legacy-homebrew#41091). As of Homebrew/legacy-homebrew@9dae089 we now
    have v8 4.4.63.31 to work with, and after this commit we build and our
    tests pass with the following dependencies installed by homebrew:
    
        gflags
        glog
        libxml2
        protobuf
        re2
        v8
Commits on Aug 9, 2015
Commits on Jul 28, 2015
  1. Show the full user stack trace on failure.

    egoog authored and jacobsa committed Jul 28, 2015
    This is needed when the failed expectation is within a utility
    method that is called multiple times during a test,
    in order to determine which call resulted in a failure.
  2. Deleted a test that is no longer relevant.

    jacobsa committed Jul 28, 2015
    In v8 4.4, this error apparently comes with line numbers.
  3. Refactored common v8 initialization code.

    jacobsa committed Jul 28, 2015
    As of v8 4.4, we need to call SetArrayBufferAllocator in
    v8_utils_test.cc, too.
Commits on May 20, 2015
  1. Merge pull request #6 from pguillory/mock-function

    jacobsa committed May 20, 2015
    Show stack traces for unexpected mock function calls