Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedValueType missing + after errorString(data.Vnode) #410

Open
watzak opened this issue Sep 5, 2016 · 0 comments
Open

UnsupportedValueType missing + after errorString(data.Vnode) #410

watzak opened this issue Sep 5, 2016 · 0 comments

Comments

@watzak
Copy link

watzak commented Sep 5, 2016

Check => https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/index.js

Problem
In following method is a + for concatenation missing after errorString(data.received)

Solution
function UnsupportedValueType(data) {
var err = new Error();

err.type = 'virtual-hyperscript.unsupported.value-type';
err.message = 'Unexpected value type for input passed to h().\n' +
    'Expected a ' +
    errorString(data.expected) +
    ' but got:\n' +
    errorString(data.received) +
    '.\n' +
    'The vnode is:\n' +
    errorString(data.Vnode) +
    '\n' +
    'Suggested fix: Cast the value passed to h() to a string using String(value).';
err.Vnode = data.Vnode;

return err;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant